Optimal. Leaf size=112 \[ \frac {-B d+A e}{2 e (b d-a e) (d+e x)^2}+\frac {A b-a B}{(b d-a e)^2 (d+e x)}+\frac {b (A b-a B) \log (a+b x)}{(b d-a e)^3}-\frac {b (A b-a B) \log (d+e x)}{(b d-a e)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {78}
\begin {gather*} \frac {A b-a B}{(d+e x) (b d-a e)^2}-\frac {B d-A e}{2 e (d+e x)^2 (b d-a e)}+\frac {b (A b-a B) \log (a+b x)}{(b d-a e)^3}-\frac {b (A b-a B) \log (d+e x)}{(b d-a e)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int \frac {A+B x}{(a+b x) (d+e x)^3} \, dx &=\int \left (\frac {b^2 (A b-a B)}{(b d-a e)^3 (a+b x)}+\frac {B d-A e}{(b d-a e) (d+e x)^3}+\frac {(-A b+a B) e}{(b d-a e)^2 (d+e x)^2}+\frac {b (A b-a B) e}{(-b d+a e)^3 (d+e x)}\right ) \, dx\\ &=-\frac {B d-A e}{2 e (b d-a e) (d+e x)^2}+\frac {A b-a B}{(b d-a e)^2 (d+e x)}+\frac {b (A b-a B) \log (a+b x)}{(b d-a e)^3}-\frac {b (A b-a B) \log (d+e x)}{(b d-a e)^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 112, normalized size = 1.00 \begin {gather*} \frac {B d-A e}{2 e (-b d+a e) (d+e x)^2}+\frac {A b-a B}{(b d-a e)^2 (d+e x)}+\frac {b (A b-a B) \log (a+b x)}{(b d-a e)^3}-\frac {b (A b-a B) \log (d+e x)}{(b d-a e)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 111, normalized size = 0.99
method | result | size |
default | \(-\frac {\left (A b -B a \right ) b \ln \left (b x +a \right )}{\left (a e -b d \right )^{3}}-\frac {A e -B d}{2 \left (a e -b d \right ) e \left (e x +d \right )^{2}}+\frac {\left (A b -B a \right ) b \ln \left (e x +d \right )}{\left (a e -b d \right )^{3}}+\frac {A b -B a}{\left (a e -b d \right )^{2} \left (e x +d \right )}\) | \(111\) |
norman | \(\frac {\frac {\left (A b \,e^{2}-B a \,e^{2}\right ) x}{e \left (a^{2} e^{2}-2 a b d e +b^{2} d^{2}\right )}-\frac {A a \,e^{3}-3 A b d \,e^{2}+B a d \,e^{2}+B b \,d^{2} e}{2 e^{2} \left (a^{2} e^{2}-2 a b d e +b^{2} d^{2}\right )}}{\left (e x +d \right )^{2}}+\frac {\left (A b -B a \right ) b \ln \left (e x +d \right )}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}-\frac {\left (A b -B a \right ) b \ln \left (b x +a \right )}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}\) | \(219\) |
risch | \(\frac {\frac {e \left (A b -B a \right ) x}{a^{2} e^{2}-2 a b d e +b^{2} d^{2}}-\frac {A a \,e^{2}-3 A b d e +B a d e +B b \,d^{2}}{2 e \left (a^{2} e^{2}-2 a b d e +b^{2} d^{2}\right )}}{\left (e x +d \right )^{2}}-\frac {b^{2} \ln \left (b x +a \right ) A}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}+\frac {b \ln \left (b x +a \right ) B a}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}+\frac {b^{2} \ln \left (-e x -d \right ) A}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}-\frac {b \ln \left (-e x -d \right ) B a}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}\) | \(299\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 242 vs.
\(2 (118) = 236\).
time = 0.31, size = 242, normalized size = 2.16 \begin {gather*} -\frac {{\left (B a b - A b^{2}\right )} \log \left (b x + a\right )}{b^{3} d^{3} - 3 \, a b^{2} d^{2} e + 3 \, a^{2} b d e^{2} - a^{3} e^{3}} + \frac {{\left (B a b - A b^{2}\right )} \log \left (x e + d\right )}{b^{3} d^{3} - 3 \, a b^{2} d^{2} e + 3 \, a^{2} b d e^{2} - a^{3} e^{3}} - \frac {B b d^{2} + A a e^{2} + {\left (B a e - 3 \, A b e\right )} d + 2 \, {\left (B a e^{2} - A b e^{2}\right )} x}{2 \, {\left (b^{2} d^{4} e - 2 \, a b d^{3} e^{2} + a^{2} d^{2} e^{3} + {\left (b^{2} d^{2} e^{3} - 2 \, a b d e^{4} + a^{2} e^{5}\right )} x^{2} + 2 \, {\left (b^{2} d^{3} e^{2} - 2 \, a b d^{2} e^{3} + a^{2} d e^{4}\right )} x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 332 vs.
\(2 (118) = 236\).
time = 1.09, size = 332, normalized size = 2.96 \begin {gather*} -\frac {B b^{2} d^{3} - 3 \, A b^{2} d^{2} e - {\left (A a^{2} + 2 \, {\left (B a^{2} - A a b\right )} x\right )} e^{3} + {\left (2 \, {\left (B a b - A b^{2}\right )} d x - {\left (B a^{2} - 4 \, A a b\right )} d\right )} e^{2} + 2 \, {\left ({\left (B a b - A b^{2}\right )} x^{2} e^{3} + 2 \, {\left (B a b - A b^{2}\right )} d x e^{2} + {\left (B a b - A b^{2}\right )} d^{2} e\right )} \log \left (b x + a\right ) - 2 \, {\left ({\left (B a b - A b^{2}\right )} x^{2} e^{3} + 2 \, {\left (B a b - A b^{2}\right )} d x e^{2} + {\left (B a b - A b^{2}\right )} d^{2} e\right )} \log \left (x e + d\right )}{2 \, {\left (b^{3} d^{5} e - a^{3} x^{2} e^{6} + {\left (3 \, a^{2} b d x^{2} - 2 \, a^{3} d x\right )} e^{5} - {\left (3 \, a b^{2} d^{2} x^{2} - 6 \, a^{2} b d^{2} x + a^{3} d^{2}\right )} e^{4} + {\left (b^{3} d^{3} x^{2} - 6 \, a b^{2} d^{3} x + 3 \, a^{2} b d^{3}\right )} e^{3} + {\left (2 \, b^{3} d^{4} x - 3 \, a b^{2} d^{4}\right )} e^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 558 vs.
\(2 (92) = 184\).
time = 1.97, size = 558, normalized size = 4.98 \begin {gather*} - \frac {b \left (- A b + B a\right ) \log {\left (x + \frac {- A a b^{2} e - A b^{3} d + B a^{2} b e + B a b^{2} d - \frac {a^{4} b e^{4} \left (- A b + B a\right )}{\left (a e - b d\right )^{3}} + \frac {4 a^{3} b^{2} d e^{3} \left (- A b + B a\right )}{\left (a e - b d\right )^{3}} - \frac {6 a^{2} b^{3} d^{2} e^{2} \left (- A b + B a\right )}{\left (a e - b d\right )^{3}} + \frac {4 a b^{4} d^{3} e \left (- A b + B a\right )}{\left (a e - b d\right )^{3}} - \frac {b^{5} d^{4} \left (- A b + B a\right )}{\left (a e - b d\right )^{3}}}{- 2 A b^{3} e + 2 B a b^{2} e} \right )}}{\left (a e - b d\right )^{3}} + \frac {b \left (- A b + B a\right ) \log {\left (x + \frac {- A a b^{2} e - A b^{3} d + B a^{2} b e + B a b^{2} d + \frac {a^{4} b e^{4} \left (- A b + B a\right )}{\left (a e - b d\right )^{3}} - \frac {4 a^{3} b^{2} d e^{3} \left (- A b + B a\right )}{\left (a e - b d\right )^{3}} + \frac {6 a^{2} b^{3} d^{2} e^{2} \left (- A b + B a\right )}{\left (a e - b d\right )^{3}} - \frac {4 a b^{4} d^{3} e \left (- A b + B a\right )}{\left (a e - b d\right )^{3}} + \frac {b^{5} d^{4} \left (- A b + B a\right )}{\left (a e - b d\right )^{3}}}{- 2 A b^{3} e + 2 B a b^{2} e} \right )}}{\left (a e - b d\right )^{3}} + \frac {- A a e^{2} + 3 A b d e - B a d e - B b d^{2} + x \left (2 A b e^{2} - 2 B a e^{2}\right )}{2 a^{2} d^{2} e^{3} - 4 a b d^{3} e^{2} + 2 b^{2} d^{4} e + x^{2} \cdot \left (2 a^{2} e^{5} - 4 a b d e^{4} + 2 b^{2} d^{2} e^{3}\right ) + x \left (4 a^{2} d e^{4} - 8 a b d^{2} e^{3} + 4 b^{2} d^{3} e^{2}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.89, size = 228, normalized size = 2.04 \begin {gather*} -\frac {{\left (B a b^{2} - A b^{3}\right )} \log \left ({\left | b x + a \right |}\right )}{b^{4} d^{3} - 3 \, a b^{3} d^{2} e + 3 \, a^{2} b^{2} d e^{2} - a^{3} b e^{3}} + \frac {{\left (B a b e - A b^{2} e\right )} \log \left ({\left | x e + d \right |}\right )}{b^{3} d^{3} e - 3 \, a b^{2} d^{2} e^{2} + 3 \, a^{2} b d e^{3} - a^{3} e^{4}} - \frac {{\left (B b^{2} d^{3} - 3 \, A b^{2} d^{2} e - B a^{2} d e^{2} + 4 \, A a b d e^{2} - A a^{2} e^{3} + 2 \, {\left (B a b d e^{2} - A b^{2} d e^{2} - B a^{2} e^{3} + A a b e^{3}\right )} x\right )} e^{\left (-1\right )}}{2 \, {\left (b d - a e\right )}^{3} {\left (x e + d\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.24, size = 228, normalized size = 2.04 \begin {gather*} -\frac {\frac {A\,a\,e^2+B\,b\,d^2-3\,A\,b\,d\,e+B\,a\,d\,e}{2\,e\,\left (a^2\,e^2-2\,a\,b\,d\,e+b^2\,d^2\right )}-\frac {e\,x\,\left (A\,b-B\,a\right )}{a^2\,e^2-2\,a\,b\,d\,e+b^2\,d^2}}{d^2+2\,d\,e\,x+e^2\,x^2}-\frac {2\,b\,\mathrm {atanh}\left (\frac {\left (\frac {a^3\,e^3-a^2\,b\,d\,e^2-a\,b^2\,d^2\,e+b^3\,d^3}{a^2\,e^2-2\,a\,b\,d\,e+b^2\,d^2}+2\,b\,e\,x\right )\,\left (a^2\,e^2-2\,a\,b\,d\,e+b^2\,d^2\right )}{{\left (a\,e-b\,d\right )}^3}\right )\,\left (A\,b-B\,a\right )}{{\left (a\,e-b\,d\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________